package com.cn.common.module.login.response;

import com.cn.common.core.serial.Serializer;

/**
 * Created by nayuta on 2018/8/1.
 */
public class LoginResponse extends Serializer {

    private int status;
    /**
     * 离线消息,暂时这样做着先
     */
    private String json;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    @Override
    protected void read() {
        this.status = readInt();
        this.json = readString();
    }

    @Override
    protected void write() {
        writeInt(status);
        writeString(json);
    }
}
